<script setup>
import { ref } from 'vue'
import ChildComponent from './child/Demo3Child.vue'

const title = ref('初始标题')
const handleCountChange = (newCount) => {
  console.log('新计数:', newCount)
}
</script>

<template>
  <ChildComponent
    v-model:title="title"
    :initial-count="5"
    @count-change="handleCountChange"
  />
  
  <p>父组件标题: {{ title }}</p>
</template>